package utils;

import com.lidroid.xutils.db.annotation.Column;
import com.lidroid.xutils.db.annotation.Id;
import com.lidroid.xutils.db.annotation.NotNull;
import com.lidroid.xutils.db.annotation.Table;
import com.lidroid.xutils.db.annotation.Unique;

/**
 * Created by Mr.xingkong on 2016/1/16.
 */
@Table(name = "shoppingcart")
public class ShoppingCart
{
    boolean ischecked = false;
    int selectCount = 1;

    public int getSelectCount()
    {
        return selectCount;
    }

    public void setSelectCount(int selectCount)
    {
        this.selectCount = selectCount;
    }

    public boolean ischecked()
    {
        return ischecked;
    }

    public void setChecked(boolean checked)
    {
        ischecked = checked;
    }
    @Id
    int productID;

    @NotNull
    @Unique
    @Column(column = "productName")
    String productName;

    @Column(column = "store")
    String store;

    @Column(column = "price")
    String price = "0";

    @Column(column = "count")
    int count;

    @Column(column = "pic_url")
    String pic_url;

    @Column(column = "stock")
    int stock;

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public String getPic_url()
    {
        return pic_url;
    }

    public void setPic_url(String pic_url) {
        this.pic_url = pic_url;
    }

    public int getProductID() {
        return productID;
    }

    public void setProductID(int productID) {
        this.productID = productID;
    }

    public String getStore() {
        return store;
    }

    public void setStore(String store) {
        this.store = store;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
